const user = {
    namespaced:true,
    state: {
        userifo:{
            Grade:null,
        },
        islogin: false, // 是否登陆
    },
    mutations: {
        userifo_Grade(state, value){
            state.userifo.Grade = value
        },
        init_userinfo(state){
            state.userifo = JSON.parse(JSON.stringify(init_data))
        },
        ISLOGIN(state, value){
            state.islogin = value
        },
    },
}
const init_data = JSON.parse(JSON.stringify(user.state.userifo))


export default user